package com.ruijiang.vo.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
public class EchartCollectVO {
    @JsonProperty("xAxis")
    private List xAxis;
    @JsonProperty("series")
    private List series;

    //返回空数组
    public static EchartCollectVO buildNull(){
        return EchartCollectVO.builder().build();
    }

    public static EchartCollectVO buildAll(List xAx,List ser){
        return EchartCollectVO.builder()
                .xAxis(xAx)
                .series(ser)
                .build();
    }


}
